StvDEV

 Components

 Drawing

 Extensions

 Inspector

 Patterns

 TextMeshPro

 Types

 Vibration

  AndroidVibrationManager

  Cancel()

  GetSDKLevel()

  IsAndroid()

  Vibrate(float)

  Vibrate(float, float)

  Vibrate(float, int)

  Vibrate(long)

  Vibrate(long, float)

  Vibrate(long, int)

  Vibrate(long[], int)

  Vibrate(VibrationLength)

  Vibrate(VibrationLength, VibrationStrength)

  VibrationLength

  VibrationStrength

class AndroidVibrationManager

Performs Android device vibration.
VisibilityPublic
Modifiersstatic

Public static methods

void Cancel()Cancels any active vibration.
int GetSDKLevel()Returns an int value that is the Android SDK level.
bool IsAndroid()Returns a boolean value of whether the device is Android or not.
void Vibrate(float seconds)Vibrates an Android device for the specified length of time in seconds.
void Vibrate(long milliseconds)Vibrates an Android device for the specified length of time in millisecond.
void Vibrate(VibrationLength length)Vibrates an Android device for the specified length of time.
void Vibrate(float seconds, int amplitude)Vibrates an Android device for the specified length of time in seconds, with a given amplitude.
void Vibrate(float seconds, float amplitude)Vibrates an Android device for the specified length of time in seconds, with a given amplitude.
void Vibrate(long milliseconds, float amplitude)Vibrates an Android device for the specified length of time in milliseconds, with a given amplitude.
void Vibrate(VibrationLength length, VibrationStrength strength)Vibrates an Android device for the specified length of time, with a given strength.
void Vibrate(long milliseconds, int amplitude)Vibrates an Android device for the specified length of time in millisecond, with a given amplitude.
void Vibrate(long[] pattern, int repeat)Vibrates an Android device for the specified pattern and number of repetitions.